Two builders make custom standing desks in the same Austin warehouse district. Call them Maya at Oakline and Devin at Grainwork. They sell almost the identical desk, solid white oak with steel legs, for the same $900. Same wood supplier down the road. Same customers finding them on the same websites.
At the end of the year Maya keeps about $340 of profit on each desk. Devin keeps about $170. Same product, same price, half the profit. Devin spends months convinced he needs to sell more desks. The real answer was sitting one line below revenue the whole time, in a number neither of them paid much attention to.
The number is the “cost of goods sold."
What cost of goods sold actually means
Cost of goods sold, almost always written as "COGS," is the direct cost of producing the goods you actually sold during a period. The two words that carry all the weight are direct and sold.
"Direct" means the cost has to be tied to making the product itself. The white oak. The steel legs. The wages of the person who cut, sanded, and assembled the desk. Glue, screws, finish. If the cost goes up the moment you build one more desk, it almost certainly belongs in COGS.
“Sold” matters just as much. COGS only counts the cost of goods that left the building and became revenue. Wood sitting in the racks for a desk nobody ordered yet is not COGS. It is inventory, and it waits on the balance sheet as an asset until the day it actually sells. COGS and inventory are two sides of the same coin, and the cost only crosses over when the sale happens.
A clean test for whether something belongs in COGS:
Would this cost still exist if you made and sold nothing this period?
If the answer is no, it is probably COGS. The warehouse rent gets paid whether or not a single desk goes out the door, so rent stays out. The oak only gets bought because a desk is getting built, so oak goes in.
Why it sits exactly where it sits
COGS lives in one specific spot on the income statement, directly under revenue, and that position is the entire point.
Gross profit = Revenue − COGS
Gross margin = Gross profit ÷ Revenue
Revenue is the top line. Subtract COGS and you get gross profit, the money the product itself earns before rent, salaries, marketing, software, or taxes are deducted. Gross margin turns that into a percentage you can actually compare month to month and against other shops.
This disparity is why Maya and Devin end up so far apart. Look at the same desk through both income statements:
| Per desk |
Maya (Oakline) |
Devin (Grainwork) |
| Revenue |
$900 |
$900 |
| Wood and steel |
($210) |
($260) |
| Direct labor |
($180) |
($240) |
| Finish, glue, hardware |
($40) |
($50) |
| Shipping crate materials |
($20) |
($20) |
| COGS |
($450) |
($570) |
| Gross profit |
$450 |
$330 |
| Gross margin |
50% |
37% |
Maya buys oak in larger batches and negotiates her price down. Her build process wastes less wood and takes less labor per desk. None of that shows up in revenue. All of it shows up in COGS, and COGS is what splits their gross profit. Devin selling more desks just produces more $330 margins, when the fix was making each $900 sale carry a $450 margin like Maya's.
The costs people wrongly stuff into COGS
The fastest way to get a margin number that lies to you is putting the wrong expenses here. These belong below gross profit, in operating expenses, not in COGS:
These include office rent, the owner's salary, the bookkeeper, advertising, the website, sales commissions, delivery to the customer, and the accountant. These are real costs, but they are for running the company, not for building the product. Accountants group them as SG&A, selling, general, and administrative. They appear further down the income statement and reduce operating profit, not gross profit.
Mixing the two blurs the one signal that gross margin is supposed to give you.
Is the product itself making money before overhead?
A 37 percent gross margin tells Devin his desk has a build-cost problem. A healthy gross margin with no profit at the bottom would indicate the opposite: an overhead problem. Putting marketing inside COGS hides which conversation he actually needs to have.
How the period math works
For a maker holding inventory, COGS is not just the parts list for one desk. Over a full period it follows a short formula:
COGS = Beginning inventory + Purchases − Ending inventory
Start with the inventory you carried in, add everything you bought to produce during the period, then subtract what is still sitting on the shelves unsold at the end. What is left is the cost of what actually sold. The unsold ending inventory rolls forward as an asset and becomes next period's beginning inventory.
The method you use to value that inventory also matters. Under FIFO, or first in first out, the oldest wood is treated as sold first. When lumber prices are climbing, FIFO leaves your cheaper early purchases in COGS and your pricier recent wood in ending inventory, which reports a lower COGS and a higher profit. LIFO flips it. The weighted average method blends every purchase into one average cost and smooths the swings. Same desks, same sales, different reported margin, purely from the costing method.
The one habit to build
Open your income statement and find gross margin before you look at anything else. If it is sliding while sales rise, the problem is not how many you sell. It is what each sale costs you to deliver. Fix the cost that lives between revenue and profit, and every sale after it is worth more.